package com.zhixianggou.caibaobox.user.shiro.tokens;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Definition
 * @Author ZYQ
 * @Date 2022/9/29 15:14
 * @Version 1.0
 */
public class WeChatToken implements AuthenticationToken {

    private String openId;
    /**
     *
     */
    @Override
    public Object getPrincipal() {
        return openId;
    }

    @Override
    public Object getCredentials() {
        return null;
    }

    public WeChatToken(String openId){
        this.openId=openId;
    }
}
